package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.io.Serializable;

/**
 * 产品-汽车适配（中间）对象 product_car
 *
 * @author ruoyi
 * @date 2023-01-25
 */
@TableName("product_car")
public class ProductCar extends BaseEntity implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 产品-汽车适配id */
    @TableId
    private Long id;

    /** 产品id */
    @Excel(name = "产品id")
    private Long productId;

    /** 汽车id */
    @Excel(name = "汽车id")
    private Long carId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }
    public void setCarId(Long carId)
    {
        this.carId = carId;
    }

    public Long getCarId()
    {
        return carId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productId", getProductId())
            .append("carId", getCarId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
